﻿
using System.ComponentModel.DataAnnotations;

namespace Dyao.Book.Contract
{
    /// <summary>
    /// 任务中心-添加或编辑规则
    /// </summary>
    public class TaskCenterRuleAddOrEditDto
    {
        /// <summary>
        /// id
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// KEY
        /// </summary>
        [Required(ErrorMessage = "规则Key不能为空")]
        public string RuleKey { get; set; }

        /// <summary>
        /// 规则名称
        /// </summary>
        [Required(ErrorMessage = "规则名称不能为空")]
        public string Name { get; set; }

        /// <summary>
        /// 规则配置
        /// </summary>
        public string RuleSettings { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

    }
}
